package itdep.domain.student;

import itdep.domain.IisEntity;
import itdep.domain.division.Employee;

import javax.persistence.*;

@Entity
@Table(name = "DIPLOMA")
public class Diploma extends IisEntity {

	@Column(name = "SERIA", nullable = false, insertable = true, updatable = true)
	private String seria;

	@Column(name = "SERIAL_NUMBER", nullable = false, insertable = true, updatable = true)
	private String serialNumber;

	@Column(name = "REGISTRATION_NUMBER", nullable = false, insertable = true, updatable = true)
	private String registrationNumber;

	@Column(name = "TOPIC", nullable = false, insertable = true, updatable = true)
	private String topic;

	@Column(name = "MARK", nullable = false, insertable = true, updatable = true)
	private String mark;

	@Column(name = "MANAGER", nullable = false, insertable = true, updatable = true)
	private String manager;

	@ManyToOne(targetEntity = Employee.class, fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_DIPLOMA_CONSULTANT", nullable = false, insertable = true, updatable = true)
	private Employee diplomaConsultant;

	public Employee getDiplomaConsultant() {
		return diplomaConsultant;
	}

	public void setDiplomaConsultant(Employee diplomaConsultant) {
		this.diplomaConsultant = diplomaConsultant;
	}

	public String getManager() {
		return manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getRegistrationNumber() {
		return registrationNumber;
	}

	public void setRegistrationNumber(String registrationNumber) {
		this.registrationNumber = registrationNumber;
	}

	public String getSeria() {
		return seria;
	}

	public void setSeria(String seria) {
		this.seria = seria;
	}

	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}
}